package com.source.lightfowl.basedata.dao;

import com.source.lightfowl.basedata.entity.BarcodeMachineMsg;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: xcy
 * @Date:Create：in 2020/9/27 10:59
 * @Description:
 */
@Repository
public interface BarcodeMachineMsgDao extends JpaRepository<BarcodeMachineMsg,String>, JpaSpecificationExecutor<BarcodeMachineMsg> {
    @Modifying
    @Transactional
    @Query("delete from BarcodeMachineMsg s where s.id in (?1)")
    void deleteBatch(List<String> ids);
}
